Skip to content

chore(deps): update rspack dependencies#76

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rspack-deps
Open

chore(deps): update rspack dependencies#76
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rspack-deps

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 19, 2026

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence Type Update
@rspack/core (source) 2.0.0-rc.12.0.4 age confidence dependencies patch
rspack_binding_build (source) =0.100.0-rc.1=0.100.4 age confidence workspace.dependencies patch
rspack_binding_builder (source) =0.100.0-rc.1=0.100.4 age confidence workspace.dependencies patch
rspack_binding_builder_macros (source) =0.100.0-rc.1=0.100.4 age confidence workspace.dependencies patch
rspack_cacheable =0.100.0-rc.1=0.100.4 age confidence workspace.dependencies patch
rspack_collections (source) =0.100.0-rc.1=0.100.4 age confidence workspace.dependencies patch
rspack_core =0.100.0-rc.1=0.100.4 age confidence workspace.dependencies patch
rspack_error =0.100.0-rc.1=0.100.4 age confidence workspace.dependencies patch
rspack_hook =0.100.0-rc.1=0.100.4 age confidence workspace.dependencies patch

Release Notes

web-infra-dev/rspack (@​rspack/core)

v2.0.4

Compare Source

Highlights 💡

  • Inline const with module declarations (#​14032): Previously, Rspack only inlined constant exports from leaf modules in the module graph. Now constant exports from any module can be inlined, even when that module also imports or re-exports other modules. In rare circular-reference cases this can make a TDZ error disappear, but we do not expect real projects to rely on TDZ errors, so Rspack prioritizes the optimization.

    // constants.js
    import './setup';
    
    export const ENABLE_EXPERIMENT = false;
    
    // entry.js
    import { ENABLE_EXPERIMENT } from './constants';
    
    if (ENABLE_EXPERIMENT) {
      runExperiment();
    }
    
    // Before: constants.js is not a leaf module, so the branch could keep
    // reading the imported binding.
    if (ENABLE_EXPERIMENT) {
      runExperiment();
    }
    
    // Now: the constant can still be inlined, so dead branches are easier
    // to remove.
    if (false) {
      runExperiment();
    }
  • Tree shake namespace default reexport (#​13980): Previously, the import * as a from './a'; export default a; pattern did not tree-shake a through the default export. Now Rspack further analyzes the default-exported namespace object and can remove unused exports from the original namespace module.

    // a.js
    export function used() {}
    export function unused() {}
    
    // bridge.js
    import * as a from './a';
    export default a;
    
    // app.js
    import a from './bridge';
    
    a.used();
    
    // Before: both used and unused could be kept in the bundle.
    // Now: unused can be tree-shaken.
  • CSS global module type (#​13988): css/global is useful when most selectors in a stylesheet should stay global, but you still want CSS Modules features for selected local selectors. This makes it easier to migrate existing global CSS gradually without turning every class name into a local scoped name.

    export default {
      module: {
        rules: [{ test: /\.global\.css$/i, type: 'css/global' }],
      },
    };
    /* style.global.css */
    .button {
      color: red;
    }
    
    :local(.title) {
      font-weight: 600;
    }

    .button stays global, while .title is renamed as a local class.

  • CSS Modules local ident options (#​14009): CSS Modules now support local ident hash options such as hash function, digest, digest length, and salt. These options make generated class names more configurable and better aligned with webpack-compatible CSS Modules setups.

    export default {
      module: {
        rules: [{ test: /\.module\.css$/i, type: 'css/module' }],
        generator: {
          'css/module': {
            localIdentName: '[name]__[local]__[hash]',
            localIdentHashFunction: 'xxhash64',
            localIdentHashDigest: 'hex',
            localIdentHashDigestLength: 8,
            localIdentHashSalt: 'my-salt',
          },
        },
      },
    };

What's Changed

New Features 🎉
Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: web-infra-dev/rspack@v2.0.3...v2.0.4

v2.0.3

Compare Source

What's Changed

Performance Improvements ⚡
New Features 🎉
Bug Fixes 🐞
Refactor 🔨
Document Updates 📖
Other Changes

Full Changelog: web-infra-dev/rspack@v2.0.2...v2.0.3

v2.0.2

Compare Source

What's Changed

Performance Improvements ⚡
New Features 🎉
Bug Fixes 🐞
Document Updates 📖
Other Changes

New Contributors

Full Changelog: web-infra-dev/rspack@v2.0.1...v2.0.2

v2.0.1

Compare Source

What's Changed

Performance Improvements ⚡
New Features 🎉
Bug Fixes 🐞
Refactor 🔨
Document Updates 📖
Other Changes

New Contributors

Full Changelog: web-infra-dev/rspack@v2.0.0...v2.0.1

v2.0.0

Compare Source

⚡️ Rspack 2.0 Released! ⚡️


What's Changed

Breaking Changes 🛠

Note

PR body was truncated to here.


Configuration

📅 Schedule: (in timezone Asia/Shanghai)

  • Branch creation
    • "before 6am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/rspack-deps branch from 8fa7d81 to dee7df9 Compare April 22, 2026 05:17
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Apr 22, 2026

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --workspace
    Updating crates.io index
error: failed to select a version for `napi`.
    ... required by package `rspack_binding_api v0.100.4`
    ... which satisfies dependency `rspack_binding_api = "=0.100.4"` of package `rspack_binding_builder v0.100.4`
    ... which satisfies dependency `rspack_binding_builder = "=0.100.4"` of package `binding v0.0.0 (/tmp/renovate/repos/github/rstackjs/rspack-binding-template/crates/binding)`
versions that meet the requirements `^3.8.6` are: 3.9.0, 3.8.6

all possible versions conflict with previously selected packages.

  previously selected package `napi v3.8.4`
    ... which satisfies dependency `napi = "=3.8.4"` of package `binding v0.0.0 (/tmp/renovate/repos/github/rstackjs/rspack-binding-template/crates/binding)`

failed to select a version for `napi` which could resolve this conflict

@renovate renovate Bot force-pushed the renovate/rspack-deps branch 3 times, most recently from 65b1e0e to 4ff5dc1 Compare April 28, 2026 14:57
@renovate renovate Bot force-pushed the renovate/rspack-deps branch 3 times, most recently from d9a72ac to da6a5d2 Compare May 12, 2026 13:08
@renovate renovate Bot force-pushed the renovate/rspack-deps branch from da6a5d2 to 15ea735 Compare May 20, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants